package com.whiteseason.springbootlean.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;
import java.util.List;
import java.util.Map;

@Component
@Data
@ConfigurationProperties(prefix = "person")
//@Validated //校验数据注解
public class Person {
    //@Email(message = "邮箱格式错误")//校验格式
    private String name;
    private Integer age;
    private boolean happy;
    private Map<String, Object> maps;
    private List<Object> dogs;
}
